<div class="doc-item" id="doc-1320"><h2 class="doc-item-name">set-repl-name<span class="namespace">(clojure.contrib.repl-ln)</span></h2><ul class="var-arglists"><li>(<span class="var-name">set-repl-name</span>  )</li><li>(<span class="var-name">set-repl-name</span>  name-fmt)</li></ul><div class="var-docstring"><p>Sets the repl name format to the string name-fmt. Include the following
  codes in the name to make the corresponding dynamic values part of it:</p><p>%S - repl serial number
    %T - thread id
    %D - nesting depth in this thread</p><p>With no arguments, resets the repl name to its default: &quot;repl-%S&quot;</p></div><div class="var-source"><pre>; clojure/contrib/repl_ln.clj:157
(defn set-repl-name
  ([]
     (set-repl-name (+info-defaults+ :name-fmt)))
  ([name-fmt]
     (assoc! *info* :name-fmt name-fmt)
     (loop [[[code fmt] &amp; more] (seq +name-formats+)
            name-fmt name-fmt]
       (if code
         (recur more (.replace name-fmt code fmt))
         (assoc! *private* :name-fmt name-fmt)))
     (let [name (repl-name)]
       (assoc! *info* :name name)
       (var-set Compiler/SOURCE name))
     nil))</pre></div><div class="license"><p>Copyright (c) Rich Hickey. All rights reserved.</p><p>The use and distribution terms for this software are covered by the <a href="http://opensource.org/licenses/eclipse-1.0.php">Eclipse Public License 1.0</a>, which can be found in the file
          epl-v10.html at the root of this distribution. By using this software
          in any fashion, you are agreeing to be bound by the terms of this
          license. You must not remove this notice, or any other, from this
          software.</p></div></div>